package com.me.bbs.entity;

import java.io.Serializable;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
@ApiModel(value = "User对象", description = "")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long userId;

    private String username;

    private String nickname;

    private Integer gender;

    private LocalDate birthday;

    private String avatar;

    private String bgImg;

    private String intro;

    private String password;

    public Integer getPostCount() {
        return postCount;
    }

    public void setPostCount(Integer postCount) {
        this.postCount = postCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getFollowingCount() {
        return followingCount;
    }

    public void setFollowingCount(Integer followingCount) {
        this.followingCount = followingCount;
    }

    public Integer getFansCount() {
        return fansCount;
    }

    public void setFansCount(Integer fansCount) {
        this.fansCount = fansCount;
    }

    private Integer postCount;
    private Integer likeCount;
    private Integer followingCount;
    private Integer fansCount;

    @Override
    public String toString() {
        return "User{" +
                "userId = " + userId +
                ", username = " + username +
                ", nickname = " + nickname +
                ", gender = " + gender +
                ", birthday = " + birthday +
                ", avatar = " + avatar +
                ", bgImg = " + bgImg +
                ", intro = " + intro +
                "}";
    }
}
